package com.lening.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.BuildingDto;
import com.lening.community.dto.CarAreaDto;
import com.lening.community.mapper.BuildingMapper;
import com.lening.community.mapper.CarAreaMapper;
import com.lening.community.pojo.Building;
import com.lening.community.pojo.CarArea;
import com.lening.community.service.BuildingService;
import com.lening.community.service.CarAreaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */
@Service
public class CarAreaServiceImpl extends BaseServiceImpl<CarAreaMapper, CarArea, CarAreaDto>
implements CarAreaService {


    @Override
    public Page<CarArea> page(CarAreaDto carAreaDto) {
        return this.baseMapper.page(carAreaDto);
    }

    @Override
    public List<CarArea> find() {
        return this.baseMapper.find();
    }

    @Override
    public int insert(CarArea carArea) {
        return this.baseMapper.insert(carArea);
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }

    @Override
    public CarArea getById(Long id) {
        return this.baseMapper.getById(id);
    }
}
